package com.zhang.springcloud.feign;

import com.zhang.springcloud.entities.CommonResult;
import com.zhang.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "nacos-payment-provider",fallback = ConsumerServiceFall.class)
public interface ConsumerService {
    @GetMapping("/paymentSQL/{id}")
    CommonResult<Payment> getFeign(@PathVariable("id") Integer id);
}
